package com.jialiang.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "op.security.jwt")
@Data
public class SecurityJWTProperties {

  /**
   * 密钥
   */
  private String secretKey = "fNesMDkqrJFdsfDSwAbFLJ8SnsHJ438AF72D73aKJSmfdsafdLKKAFKDSJ";

  /**
   * 有效时长，单位：分钟
   */
  private long durationInMinute = 86400;
}
